
let app = getApp()

Page({
  data: {
    currentTab: 0,
    items: [
      {
        "iconPath": "../../static/images/zhuye.png",
        "selectedIconPath": "../../static/images/zhuyeSelect.png",
        "textcolor":"#000000",
        "selecttextcolor":"#1296db",
        "text": "首页"
      },
      {
        "iconPath": "../../static/images/fenlei.png",
        "selectedIconPath": "../../static/images/fenleiSelect.png",
        "textcolor":"#000000",
        "selecttextcolor":"#1296db",
        "text": "图库分类"
      },
      {
        "iconPath": "../../static/images/chazhao.png",
        "selectedIconPath": "../../static/images/chazhaoSelect.png",
        "textcolor":"#000000",
        "selecttextcolor":"#1296db",
        "text": "查找"
      },
      {
        "iconPath": "../../static/images/shipin.png",
        "selectedIconPath": "../../static/images/shipinSelect.png",
        "textcolor":"#000000",
        "selecttextcolor":"#1296db",
        "text": "视频"
      },
      
      {
        "iconPath": "../../static/images/mingpian.png",
        "selectedIconPath": "../../static/images/mingpianSelect.png",
        "textcolor":"#000000",
        "selecttextcolor":"#1296db",
        "text": "名片"
      }
    ]
  },
  swichNav: function (e) {
    let that = this;
    if (this.data.currentTab === e.target.dataset.current) {
      return false;
    } else {
      that.setData({
        currentTab: e.target.dataset.current
      })
    }
  },
  onLoad: function (option) {

  },
  
  
})
